﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Controls">
    <Style TargetType="{x:Type local:GameTile}">
        <Setter Property="Width" Value="350" />
        <Setter Property="FontSize" Value="30" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                            <StackPanel>
                                <Image Source="{Binding Game.Image, RelativeSource={RelativeSource AncestorType={x:Type local:GameTile}}}"
                                       />
                                <Separator Margin="0,4" />
                                <TextBlock Text="{Binding Game.Name, RelativeSource={RelativeSource AncestorType={x:Type local:GameTile}}}"
                                           FontFamily="Segoe UI"  
                                           TextAlignment="Center"/>

                            </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
